package com.qf.dao;

import com.qf.pojo.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

/**
 * @author zhouhao
 * @create 2021-12-25 16:02
 */
public interface PermissionDao {

    //根据角色Id查询权限
    @Select("select * from t_permission where id in (select permission_id from t_role_permission where role_id = #{roleId})")
    Set<Permission> findByRoleId(Integer roleId);
}
